/* Copyright (C) 2008 Robin Debreuil -- Released under the BSD License */

using System;
using System.Collections.Generic;
using System.CodeDom.Compiler;

namespace SWF
{
	public struct ZoneRecord
    {
        uint NumZoneData;
        float AlignmentCoordinate1;
		float AlignmentCoordinate2;
		float Range1;
		float Range2;
		bool ZoneMaskX;
		bool ZoneMaskY;		

		public ZoneRecord(SwfReader r)
		{
			NumZoneData = r.GetByte();
			AlignmentCoordinate1 = r.GetFixedNBits(16);
			Range1 = r.GetFixedNBits(16);
			AlignmentCoordinate2 = r.GetFixedNBits(16);
			Range2 = r.GetFixedNBits(16);

            r.GetBits(6); // reserved
			ZoneMaskX = r.GetBit();
			ZoneMaskY = r.GetBit();
			r.Align();
		}
	}
}
